package com.example.back.dto;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Transient;
import java.util.List;

@Data
public class MenuTree {

    @ApiModelProperty(value = "菜单ID")
    @JSONField(name = "ID")
    private Long id;
    @ApiModelProperty(value = "pid")
    @JSONField(name = "PID")
    private Long pid;
    @ApiModelProperty(value = "图标")
    @JSONField(name = "Icon")
    private String icon;
    @ApiModelProperty(value = "名称")
    @JSONField(name = "Name")
    private String name;
    @ApiModelProperty(value = "跳转url")
    @JSONField(name = "ShowUrl")
    private String showUrl;
    @ApiModelProperty(value = "请求路径")
    @JSONField(name = "Url")
    private String url;
    @ApiModelProperty(value = "是否可见")
    @JSONField(name = "Visiable")
    private Boolean visible;

    @ApiModelProperty(value = "子对象集合")
    @JSONField(name = "Item")
    private List<MenuTree> item;

    @Transient
    @ApiModelProperty(value = "勾选标识")
    @JSONField(name = "checkType")
    private Boolean checkType = false;

}
